package com.hhf.spring;

import com.hhf.spring.bean.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans2.xml");

		Person bean = context.getBean(Person.class);
		System.out.println(bean);

	}

	public static void test01(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");

		Person bean = context.getBean(Person.class);
		System.out.println(bean);


	}
}
